<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>
    var promise = new Promise((resolve,reject)=>{
        resolve(1)
    })

    promise.then((val)=>{
        console.log(val,"val");
    })
</script>
</html>